program Kos1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  x0, y0, x1, y1, R, dx, dy, dxy: integer;
  a1, b1, c1, a2, b2, c2, D: real;

begin
  readln(x0);
  readln(y0);
  readln(x1);
  readln(y1);
  readln(R);

  dy:=y1-y0;
  dx:=x1-x0;
  dxy:=dy*dy+dx*dx;
  D:=dx*( sqrt((dxy-R*R)) );

  b1:=(R*dy+D)/dxy;
  b2:=(R*dy-D)/dxy;
  a1:=(R-b2*dy)/dx;
  a2:=(R-b1*dy)/dx;
  c1:=-(a1*x0+b2*y0);
  c2:=-(a2*x0+b1*y0);

  writeln;

  writeln('a1=',a1);
  writeln('b1=',b2);
  writeln('c1=',c1);

  writeln;

  writeln('a2=',a2);
  writeln('b2=',b1);
  writeln('c2=',c2);

  readln;

end.
